//
//  NSDictionary+Safe.h
//  YYBaseClass
//
//  Created by xn on 2022/1/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (Safe)

- (id)safeObjectForKey:(id)key;


@end

@interface NSMutableDictionary (Safe)


- (void)safeSetObject:(id)object forKey:(id)key;

- (void)safeRemoveObjectForKey:(id)key;

-(NSMutableDictionary * (^)(NSString *key, id object))add;

-(NSMutableDictionary * (^)(NSDictionary *params))append;

+(NSMutableDictionary *)dictionaryWith:(void(^)(NSMutableDictionary *make))block;

@end

NS_ASSUME_NONNULL_END
